package com.firefoxking.mysite.service.content;

import com.firefoxking.mysite.dao.dto.ContentCond;
import com.firefoxking.mysite.entity.Content;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ContentService {

    List<Content> getArticlesListByCond(ContentCond contentCond);

    int addArticle(Content content);

    int deleteArticleId(Integer cid);

    int updateArticleById(Content content);

    Content getArticleById(Integer cid);

    PageInfo<Content> getArticlesPagedByCond(ContentCond contentCond, Integer page, Integer pageSize);

    PageInfo<Content> getRecentlyArticles(Integer page, Integer pageSize);

    PageInfo<Content> searchArticles(String param, Integer page, Integer pageSize);
}
